// Copyright 2012 Anno Langen. All Rights Reserved.

package org.anno;

import java.lang.management.ManagementFactory;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Namespace for constants relating to parallel execution.
 */
public interface Parallel {

  int CPU_COUNT = ManagementFactory.getOperatingSystemMXBean().getAvailableProcessors();
  ExecutorService EXECUTOR = Executors.newFixedThreadPool(CPU_COUNT);
}
